package com.webbei.shoppingCar.service.impl;

import java.util.Map;

import com.webbei.pojo.Customer;
import com.webbei.pojo.Customs;
import com.webbei.pojo.Orders;
import com.webbei.shoppingCar.dao.shoppingCarDao;
import com.webbei.shoppingCar.service.shoppingCarService;

public class shoppingCarServiceImpl implements shoppingCarService{
	private shoppingCarDao shopDao;
	
	public shoppingCarDao getShopDao() {
		return shopDao;
	}

	public void setShopDao(shoppingCarDao shopDao) {
		this.shopDao = shopDao;
	}

	public Customer getCustomerByUserName(String userName) {
		return shopDao.getCustomerByUserName(userName);
	}

	public Customs getCustomsById(Long id) {
		return shopDao.getCustomsById(id);
	}

	public Orders getOrdersById(Long id) {
		return shopDao.getOrdersById(id);
	}

	public void saveOrder(Orders o) {
		shopDao.saveOrder(o);
	}
	public void saveOrder1(Orders o) {
		shopDao.saveOrder1(o);
	}

	public Integer getIndusByProductId(Integer id) {
		return shopDao.getIndusByProductId(id);
	}

	public Integer getOrderStateByOrderId(Long id) {
		return shopDao.getOrderStateByOrderId(id);
	}

	public String getBgPicByBgPicId(Integer id) {
		return shopDao.getBgPicByBgPicId(id);
	}

	@Override
	public Integer getCustomerCountAtLogin(Map<String, String> map) {
		// TODO Auto-generated method stub
		return shopDao.getCustomerCountAtLogin(map);
	}

	@Override
	public String getUserNameByEmail(String email) {
		// TODO Auto-generated method stub
		return shopDao.getUserNameByEmail(email);
	}

	@Override
	public String getUserPasswordByUserName(String username) {
		// TODO Auto-generated method stub
		return shopDao.getUserPasswordByUserName(username);
	}

	@Override
	public void changeUserPassword(Map map) {
		// TODO Auto-generated method stub
		shopDao.changeUserPassword(map);
	}

	@Override
	public Integer isHasRelatedThird(Map m1) {
		// TODO Auto-generated method stub
		return shopDao.isHasRelatedThird(m1);
	}

	@Override
	public void updateCustomAtshop(Customs c) {
		// TODO Auto-generated method stub
		shopDao.updateCustomAtshop(c);
	}

	@Override
	public String getTypesNameByUrl(String url) {
		// TODO Auto-generated method stub
		return shopDao.getTypesNameByUrl(url);
	}

	@Override
	public Integer checkUserPassword(Map m) {
		// TODO Auto-generated method stub
		return shopDao.checkUserPassword(m);
	}


}
